package com.example.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import org.springframework.data.neo4j.core.schema.Property;
import org.springframework.data.neo4j.core.schema.RelationshipId;
import org.springframework.data.neo4j.core.schema.RelationshipProperties;
import org.springframework.data.neo4j.core.schema.TargetNode;

/**
 *
 */
@RelationshipProperties
public class GuanXi_EP {
    @RelationshipId
    private Long id;

    @Property
    private String relation;

    @TargetNode
    @JsonIgnoreProperties("eventList")
    private People people;

    public GuanXi_EP(String relation, People people) {
        this.relation = relation;
        this.people = people;
    }

    public String getRelation() {
        return relation;
    }

    public void setRelation(String relation) {
        this.relation = relation;
    }

    public People getPeople() {
        return people;
    }

    public void setPeople(People people) {
        this.people = people;
    }
}